Skip to content

Conversation

@campb303
Copy link
Collaborator

Added a new useStickyState hook to the utilities file and use it for dark mode.

The useStickyState hook wraps useState, useEffect and the window.localStorage API to synchronize state and localStorage values on load and change.

@campb303 Justin Tyler Campbell (campb303) linked an issue Aug 2, 2021 that may be closed by this pull request
@campb303 Justin Tyler Campbell (campb303) deleted the feature-store-darkmode-preference branch August 2, 2021 21:05
Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store User Preferences

1 participant